package book.security;

import java.io.IOException;
import java.math.BigInteger;
import java.security.AlgorithmParameters;
import java.security.NoSuchAlgorithmException;

public class AlgorithmParametersTest {

	public static void main(String[] args) throws IOException, NoSuchAlgorithmException {
		
		AlgorithmParameters parameters = AlgorithmParameters.getInstance("des");
		parameters.init(new BigInteger("19050619766489163472469").toByteArray()); //不能随便指定一个值，这是一个特定的值
		byte[] b = parameters.getEncoded();
		System.out.println(new BigInteger(b));
	}
}
